import React, { Component } from 'react'
import TongxinC from './TongxinC'

export default class TongxinF extends Component {
  state = {
    num: 1
  }
  setNum = () => {
    const num = this.state.num + 1
    this.setState({
      num
    })
  }
  setNumN = (n) => {
    const num = this.state.num + n
    this.setState({
      num
    })
  }
  render() {
    return (
      <div>
        <TongxinC num={this.state.num} setNum={this.setNum} setNumN={this.setNumN} />
      </div>
    )
  }
}
